{extend name="index_base" /} {block name="seo"}
<title>{$category['name']} - {$site_config['site_title']}</title>
<meta name="keywords" content="{$site_config['seo_keyword']}">
<meta name="description" content="{$site_config['seo_description']}"> {/block}
{block name="css"}

{block name="body"}
{block name="header"}
<a href="/" class="back iconfont icon-fanhui"></a>
{if $category.name eq '搜索结果'}
<div class="bar bar-header-secondary" style="width:calc(100% - 75px);margin-left:0;">
  <div class="searchbar">
    <a class="searchbar-cancel">取消</a>
    <div class="search-input">
      <label class="icon icon-search" for="search"></label>
      <form action="javaScript:void(0)" method="get">
        <input type="search" id='search' placeholder='输入关键字...' value='{$keyword}' />
      </form>
    </div>
  </div>
</div>
{else /}
<h3 class="titlea">{$category.name}</h3>
{/if}
<a href="/user/index.html" class="myico iconfont icon-wode"></a>
{/block}
{block name="body"}
  <!-- 当一个数据都没有的时候 -->
<div class="content infinite-scroll infinite-scroll-bottom" data-distance="100"  >
  {if $count}
  <ul class="list-li" id="result" data-pages="2" style="display:block;">
    <p class="result-number" hidden>已为您找到 {$count} 个资源</p>
    {volist name='articles' id="vo"}
    <li>
      <a href="/html/{$vo.id}.html" class="clearfix">
        <div class="img">
          <img src="{$vo.cover_img}"  onerror="this.src='__HOME__/images/no-img1.png';"/>
        </div>
        <div class="info">
          <h3 class="list-title"><span style="color:{$vo.color}">{$vo.title}</span></h3>
          <div class="clearfix">
            <font class="">{$vo.publish_time}</font>
            <b>查看</b>
          </div>
        </div>
      </a>
    </li>
    {/volist}
  </ul>
  <!-- 加载提示符 -->
  <div class="infinite-scroll-preloader">
    <div class="preloader"></div>
  </div>
  {else /}
    <div class="no-data">
      <img src="//static.115z.com/m/img/no-data.png" />
      <span>没有找到您想要的资源！</span>
      <a href="/">返回首页</a>
    </div>
  {/if}
  {include file="index/footer"}
</div>
{/block}
{block name="js"}
{/block}